package org.project.product.android.pfe.fanta.domain;

import java.io.Serializable;

public class Category implements Serializable, Comparable<Category> {

	private int id;
	private String name;
	private String description;
	private int numberItem;

	public int getNumberItem() {
		return numberItem;
	}

	public void setNumberItem(int numberItem) {
		this.numberItem = numberItem;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public int compareTo(Category another) {

		if (this.name == null) {
			return 0;
		}
		if (another.name == null) {
			return 0;
		}
		return this.name.compareTo(another.name);
	}

}
